package com.xyz.study.design_mode.h_abstract_factory.mode;

/**
 * 角色：ConcreteFactory 实例工厂
 * @author XYZ
 * @version 1.0.0
 * @since 2021-01-26 21:26
 */
public class ConcreteFactory implements Factory{
    @Override
    public ProductA createProductA() {
        return new ConcreteProductA();
    }

    @Override
    public ProductB createProductB() {
        return new ConcreteProductB();
    }
}
